<div class="wrapper wrapper-content animated fadeInRight">
    <!-- PAGE CONTENT BEGINS -->
    <div class="row">



        <div class="col-xs-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>搜索</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">

                        <div class="table-responsive">
                            <form class="form-search" method="get"  action="<?=url('user.address/index')?>" role="form">
                                <table>
                                    <tr>
                                        <td>会员:<input class="form-control" name="user_id" id="user_id"  value="<?=$search['user_id']?>" type="text"  placeholder="请输入会员"  style=" width:200px"/></td>
                                        <td>联系人:<input class="form-control" name="name" id="name"  value="<?=$search['name']?>" type="text"  placeholder="请输入联系人"  style=" width:200px"/></td>
                                        <td>手机号码:<input class="form-control" name="mobile" id="mobile"  value="<?=$search['mobile']?>" type="text"  placeholder="请输入手机号码"  style=" width:200px"/></td>
                                        <td>具体地址:<input class="form-control" name="address" id="address"  value="<?=$search['address']?>" type="text"  placeholder="请输入具体地址"  style=" width:200px"/></td>

                                        <td>
                                            <div class="input-group">
                                                <button type="submit" style="margin-top: 42%" class="btn form-control btn-sm btn-primary">
                                                    搜索
                                                </button>
                                            </div>
                                        </td>
                                    </tr>

                                </table>

                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>



        <div class="col-xs-12">
            <div class="ibox-content">
                <div class="row">
                    <div class="tableTools-container">
                        <a title="添加会员地址" href="<?=url('user.address/create')?>"  class="btn btn-sm btn-success"><i class=" fa fa-plus"></i>添加会员地址</a>
                    </div>



                    <div class="table-responsive">

                        <table id="simple-table"  class="table table-striped">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>会员</th>
                                    <th>联系人</th>
                                    <th>手机号码</th>
                                    <th>具体地址</th>
                                    <th>是否默认</th>
                                    <th>是否删除</th>

                                    <th >操作</th>


                                </tr>
                            </thead>
                            <form  id="mini_list">
                                <tbody>
                                    <?php foreach($list as $val){ ?>
                                    <tr>
                                        <td><?= $val->address_id ?></td>
                                        <td><?=$val->user_id?></td>
                                        <td><?=$val->name?></td>
                                        <td><?=$val->mobile?></td>
                                        <td><?=$val->address?></td>
                                        <td><?=$val->is_default==1?'是':'否'?></td>
                                        <td><?=$val->is_delete==1?'已删除':'正常'?></td>


                                        <td>
                                            <div class="hidden-sm hidden-xs btn-group">
                                                <a title="编辑会员地址"  href="<?=url('user.address/edit','address_id='.$val->address_id)?>"  class="btn btn-xs btn-info" ><i class=" fa fa-edit bigger-120"></i>编辑</a>
                                                <a title="删除会员地址" mini="act"  href="<?=url('user.address/delete','address_id='.$val->address_id)?>"  class="btn btn-xs btn-warning"><i class="fa fa-trash bigger-120"></i>删除</a>
                                            </div>                                      
                                        </td>
                                    </tr>
                                    <?php } ?>

                                </tbody>
                            </form>
                        </table>

                        <div>
                            <?php echo $page; ?>      
                        </div>
                    </div><!-- /.row -->




                </div><!-- /.main-container -->


            </div>
        </div>
    </div>
</div>
